#pragma once

namespace qb{
namespace base{

	template<class T>
	class  Singleton
	{
	public:
		static T *instance()
		{
			static T ms_instance;
			return &ms_instance;
		}
	protected:
		Singleton(){}
		~Singleton(){}
	};
}
}